<?php
class Model {
    protected $db;
    protected $dbprefix;
    public function __construct() {
        $this -> db = Reg::get( 'database' );
        $this -> dbprefix = Config::get( 'table_prefix', 'db_config' );
    }
}